﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace AMVCommander
{
    public partial class FormLogMessage : Form
    {
        public FormLogMessage()
        {
            InitializeComponent();
        }

        public void ShowDialog(string Title, string fPathLog)
        {
            Text = Title;
            txbInfo.Text = File.ReadAllText(fPathLog, Encoding.UTF8);
            ShowDialog();
        }

        private void FormLogMessage_Shown(object sender, EventArgs e)
        {
            txbInfo.SelectionLength = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }




    }
}
